package com.weight;
 
import org.mybatis.spring.annotation.MapperScan; 
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext; 
import org.springframework.transaction.annotation.EnableTransactionManagement;
 
import lombok.extern.slf4j.Slf4j;

@SpringBootApplication
@EnableTransactionManagement//启用事物管理,在service上使用@Transactional（注意是spring的 注解）
//@EnableRedisHttpSession//开启spring session支持
@MapperScan("com.weight.*.*.DAO")// 自动扫描mapper
@Slf4j
public class WeightmgApplication {

	public static void main(String[] args) {
		ApplicationContext context = SpringApplication.run(WeightmgApplication.class, args);
        
	}
	
}
